/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.user;

import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户产品Entity
 * @author 罗天文
 * @version 2018-03-29
 */
public class HkUserProduct extends DataEntity<HkUserProduct> {
	
	private static final long serialVersionUID = 1L;
	private HkUser user;		// 用户id
	private String title;		// 标题
	private String subtitle;		// 子标题
	private String imgSrc;		// 图片
	private String rank;		// 序号
	private String price;		// 单价
	private String num;		// 数量
	private String state;		// 状态
	private String preordernum;		// 预约数
	private String ordernum;		// 购买数
	private String viewCount;		// 查看数
	
	public HkUserProduct() {
		super();
	}

	public HkUserProduct(String id){
		super(id);
	}

	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=100, message="标题长度必须介于 0 和 100 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=100, message="子标题长度必须介于 0 和 100 之间")
	public String getSubtitle() {
		return subtitle;
	}

	public void setSubtitle(String subtitle) {
		this.subtitle = subtitle;
	}
	
	@Length(min=0, max=100, message="图片长度必须介于 0 和 100 之间")
	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}
	
	@Length(min=0, max=200, message="序号长度必须介于 0 和 200 之间")
	public String getRank() {
		return rank;
	}

	public void setRank(String rank) {
		this.rank = rank;
	}
	
	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}
	
	@Length(min=0, max=11, message="数量长度必须介于 0 和 11 之间")
	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Length(min=0, max=11, message="预约数长度必须介于 0 和 11 之间")
	public String getPreordernum() {
		return preordernum;
	}

	public void setPreordernum(String preordernum) {
		this.preordernum = preordernum;
	}
	
	@Length(min=0, max=11, message="购买数长度必须介于 0 和 11 之间")
	public String getOrdernum() {
		return ordernum;
	}

	public void setOrdernum(String ordernum) {
		this.ordernum = ordernum;
	}
	
	@Length(min=0, max=11, message="查看数长度必须介于 0 和 11 之间")
	public String getViewCount() {
		return viewCount;
	}

	public void setViewCount(String viewCount) {
		this.viewCount = viewCount;
	}
	
}